|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.vtp.framework.interactions.core.support.Widget
org.eclipse.vtp.framework.interactions.voice.vxml.Action
org.eclipse.vtp.framework.interactions.voice.vxml.Assignment
public class Assignment
The Assignment class represents the <assign> VXML
element. It places the value of value into the variable named
by name.
The name and value fields are required and
cannot be be null or empty strings.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
Assignment(java.lang.String name,
java.lang.String value)
Creates a new instance of Assignment. |
|
| Method Summary | |
|---|---|
java.lang.String |
getName()
Returns the name of the variable to be assigned the new value. |
java.lang.String |
getValue()
Returns the value to be assigned to new named variable. |
void |
setName(java.lang.String name)
Sets the name of the variable to be assigned the new value. |
void |
setValue(java.lang.String value)
Sets the value to be assigned to the named variable. |
protected void |
writeAttributes(org.xml.sax.helpers.AttributesImpl attributes)
Write the attribute members of this assignment to the supplied set. |
void |
writeWidget(org.xml.sax.ContentHandler outputHandler)
Writes the content of this widget to an XML content handler. |
| Methods inherited from class org.eclipse.vtp.framework.interactions.core.support.Widget |
|---|
toString, writeAttribute, writeChildren, writeChildren, writeWidget, writeWidget |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Assignment(java.lang.String name,
java.lang.String value)
Assignment. The
value parameter may contain either a string literal or an
expression that will evaluate to a string literal.
name - The name of the variable to be assigned a new value.value - The value to assign the named variable.| Method Detail |
|---|
public java.lang.String getName()
public java.lang.String getValue()
public void setName(java.lang.String name)
throws java.lang.IllegalArgumentException,
java.lang.NullPointerException
name - The name of the variable to be assigned the value.
java.lang.IllegalArgumentException - If the supplied name is empty.
java.lang.NullPointerException - If the supplied name is null.
public void setValue(java.lang.String value)
throws java.lang.IllegalArgumentException,
java.lang.NullPointerException
value - The value to be assigned to the variable.
java.lang.IllegalArgumentException - If the supplied value is empty.
java.lang.NullPointerException - If the supplied value is null.
public void writeWidget(org.xml.sax.ContentHandler outputHandler)
throws java.lang.NullPointerException,
org.xml.sax.SAXException
Widget
writeWidget in class WidgetoutputHandler - The handler to write this widget to.
java.lang.NullPointerException - If the supplied content handler is
null.
org.xml.sax.SAXException - If the writing of this widget fails.protected void writeAttributes(org.xml.sax.helpers.AttributesImpl attributes)
attributes - The attribute set to write to.
java.lang.NullPointerException - If the supplied attribute set is
null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||